import request from '@/common/request'

export function getInfo() {
  return request({
    url: '/member/info',
    method: 'get'
  })
}


export function getMemberList(data) {
  return request({
    url: '/member/index',
    method: 'post',
	data:data
  })
}


export function addMember(data) {
  return request({
    url: '/member/add',
    method: 'post',
	data:data
  })
}

export function editMember(data) {
  return request({
    url: '/member/edit',
    method: 'post',
	data:data
  })
}

export function delMember(id) {
  return request({
    url: '/member/del/id/'+id,
    method: 'get',
	
  })
}

export function getMember() {
  return request({
    url: '/member/selectMember',
    method: 'get',
	
  })
}

export function selectMemberField(){
	return request({
	  url: '/member/selectMemberField',
	  method: 'get',
		
	})
}

export function editPwd(data) {
  return request({
    url: '/member/editPwd',
    method: 'post',
	data:data
  })
}

export function userInfo() {
  return request({
    url: '/member/UserInfo',
    method: 'get',
	
  })
}
export function editInfo(data) {
  return request({
    url: '/member/editInfo',
    method: 'post',
	data:data
  })
}

export function changeStatus(id) {
    return request({
        url: '/member/changeStatus/id/'+id,
        method: 'get',

    })
}
